const productionNeed = [
  require('autoprefixer'),
  require('@fullhuman/postcss-purgecss')({
    content: ['./public/*.html', './src/**/**/*.js', './src/**/**/*.jsx', './.storybook/config.js'],
  }),
  require('cssnano')({
    preset: 'default'
  })
]

module.exports = {
  plugins: [
    require('postcss-import'),
    require('tailwindcss'),
    ...(process.env.NODE_ENV === 'production' ? productionNeed : [])
  ],
}